home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python151_Src.lha / Python1.5_Source / CHANGES.SOURCE < prev    next >
Text File  |  1998-12-24  |  7KB  |  222 lines

  1.  
  2. Changes to the original 1.5.1 source code distribution:
  3. -------------------------------------------------------
  4.  
  5. General:
  6.  
  7. At different places I've added, removed or changed some code.
  8. I tried to do this by using the preprocessor symbols:
  9. _AMIGA : Defined when compiling on Amiga.
  10.          Indicates Amiga specific code.
  11. __SASC : Defined when compiling with the SAS/C compiler.
  12.          Indicates SAS/C specific code.
  13. AMITCP : Defined when using AmiTCP as networking software.
  14.          Indicates AmiTCP specific code, but maybe this
  15.          is easily converted to, say, Inet.
  16.  
  17.  
  18.  
  19. 1. Made custom Include/config.h by hand for AmigaDOS+SAS/C+AmiTCP.
  20.  
  21. 2. Made custom Modules/config.c by hand for Amiga version of Python.
  22.  
  23. 3. Added custom Amiga module `environment' (Modules/environment.c).
  24.  
  25. 4. Added custom Amiga module `amiga' (Modules/amigamodule.c).
  26.  
  27. 5. Added custom Amiga module `ARexxll' (Modules/ARexxmodule.c).
  28.  
  29. 6. Added custom Amiga module `Doslib' (Modules/Doslibmodule.c).
  30.  
  31. 7. Added custom module `urlop' (Modules/urlopmodule.c).
  32.  
  33. 8. Added subdir Amiga with:
  34.     README                  - small describing text
  35.     mkdiffs.py              - makes diffs against original distribution
  36.     Diffs/                  - output dir for mkdiff.py
  37.     make_gst.c              - for building the GST
  38.     Python_netlib/          - contains source for python_net.lib
  39.     python_net.lib          - custom version of AmiTCP's net.lib,
  40.                   including some additional code like custom
  41.                   WB startup, environment functions etc.
  42.     DISCL_and_COPYRIGHT     - my disclaimer & CWI's copyright message
  43.     testset/                - additional tests for Amiga modules
  44.     unused/                 - currently unused stuff
  45.     Docs/                   - Amiga docs for distribution
  46.  
  47. 9. Moved some unneeded files from parser to Parser/NON-AMIGA,
  48.     from Modules to Modules/NON-AMIGA,
  49.     from Lib to Lib/NON-AMIGA,
  50.     and from Python to Python/NON-AMIGA.
  51.     (these files are not included in the source archive for space reasons)
  52.  
  53. 10. Supplied custom makefile for Amiga's SAS/C: SMAKEFILE.
  54.     Supplied SAS/C compiler options file: SCOPTIONS.
  55.     You don't need any of the original makefiles (just delete them if you like).
  56.     (new since 1.5: SMAKEFILE splitted, one for each main directory)
  57.  
  58. 11. Added Prototype files for many source files.
  59.     See `protos' directories in: Modules, Objects, Parser, Python.
  60.  
  61. 12. Added Amiga/Python_netlib/wbargs.c for better Workbench icon/tooltypes support
  62.     (adapted from source provided with SAS/C)
  63.  
  64. 13. Removed definition of struct _node in Include/compile.h for SASC.
  65.  
  66. 14. Changed in Include/mymath.h:
  67.     Added SAS math includes
  68.  
  69. 15. Added Include/protos.h file containing a bunch of function prototypes.
  70.     Added #include <protos.h> to Include/Python.h.
  71.  
  72. 16. Added Amiga specific #defines to Include/osdefs.h
  73.  
  74. 17. Added #include <proto/socket.h> to Include/myselect.h for AMITCP
  75.  
  76. 18. Fixed proto for initfunc in Include/import.h
  77.  
  78. 19. Added proto for PyFloat_AsString in Include/floatobject.h
  79.  
  80. 20. Added #Include for fcntl.h to Include/Python.h
  81.  
  82. 21. Added proto for xxxPyCObject_Import in Include/cStringIO.h
  83.  
  84. 22. Fixed unsigned char bytes in Modules/binascii.c.
  85.  
  86. 23. Added #include <proto/usergroup.h> (when AMITCP is defined) to:
  87.     Modules/pwdmodule.c
  88.     Modules/grpmodule.c
  89.     Modules/cryptmodule.c
  90.  
  91. 24. Changes to Modules/main.c:
  92.     Added 2 missing prototypes
  93.     Added Amiga specific usage text
  94.     Added SAS/C stack setting etc
  95.     Added AmiTCP init & cleanup functions to Modules/main.c
  96.         (checkXXXXlib functions)
  97.  
  98. 25. Changes to Modules/socketmodule.c:
  99.     Added check for AMITCP for proto of gethostname()
  100.     Changed use of fnctl to IoctlSocket (for s.setblocking)
  101.     Added AMITCP includes
  102.     Added a couple of #defines for AMITCP API
  103.     Clear socket buffer for new socket (PySocketSock_New)
  104.     Added proto for PySocket_Err
  105.  
  106. 26. Implemented AMITCP version of select call (with optional 5th parameter)
  107.     in Modules/select.c
  108.  
  109. 27. Changed Modules/md5c.c to use regular memcpy and memset
  110.  
  111. 28. Changed in Modules/sysmodule.c:
  112.     added code for correct behavior of setpythonargv() on Amiga
  113.  
  114. 29. Changes to Modules/getpath.c:
  115.     Changed #if to #ifdef
  116.     added #include "protos.h"
  117.     added Amiga version of PYTHONPATH #define
  118.     added Amiga versions for getting full path of executable,
  119.         reduce, checking if path is relative, ...
  120.  
  121. 30. Changes to Modules/timemodule.c:
  122.     Fixed proto for floattime()
  123.     Added code for floatsleep() on AMIGA in Modules/timemodule.c
  124.  
  125. 31. Added checks for bsdsocket.library (checkbsdsocketlib) in:
  126.     Modules/syslogmodule.c
  127.     Modules/socketmodule.c
  128.     Modules/selectmodule.c
  129.  
  130. 32. Fixed toupper macro in Modules/soundex.c
  131.  
  132. 33. Added checks for usergroup.library (checkusergrouplib) in:
  133.     Modules/pwdmodule.c
  134.     Modules/grpmodule.c
  135.     Modules/cryptmodule.c
  136.  
  137. 34. Changes in Modules/cPickle.c:
  138.     Fixed proto for put2 & save
  139.     Fixed proto for write_func in Picklerobject
  140.     Fixed proto for readline_func & read_func in Unpicklerobject
  141.  
  142. 35. Fixed proto of Py_GetBuildInfo in Modules/getbuildinfo.c
  143.  
  144. 36. Added proto for Py_Main in Modules/python.c
  145.  
  146. 37. Added proto for initcPickle in Modules/cPickle.c
  147.  
  148. 38. Added proto for initcStringIO in Modules/cStringIO.c
  149.  
  150. 39. Added proto for indenterror in Parser/tokenizer.c
  151.  
  152. 40. Added funcdefmacros with prototypes to Modules/mathmodule.c,
  153.     Modules/cmathmodule.c and Modules/operator.c
  154.  
  155. 41. Changed in Parser/intrcheck.c:
  156.     Added testcase for AMIGA for intcatcher prototype
  157.     Added #include for fcntl.h
  158.     Added SAS/C specific ^C handling
  159.  
  160. 42. Fixed proto for InputHook in Parser/myreadline.c,
  161.     and added #include "pythonrun.h" to it.
  162.  
  163. 43. Changes to Python/pythonrun.c:
  164.     Fixed `BYTE' symbol clash
  165.     Added proto for exitfuncs, parse_syntax_error
  166.     Case insensitive match for .pyc and .pyo
  167.     Added err.text=NULL at line 521
  168.  
  169. 44. Fixed prototypes in Python/mystrtoul.c
  170.  
  171. 45. Added proto to Python/getmtime.c (PyOS_GetLastModificationTime)
  172.  
  173. 46. Added stack checking code to Python/sigcheck.c
  174.  
  175. 47. Changed in Python/import.c:
  176.     Fixed path building in find_module, now uses dos.library/AddPart
  177.     Fixed proto for getmtime
  178.     Added Amiga version of check_case: now the imports are case sensitive
  179.  
  180. 48. Added proto for hypot in Python/hypot.c
  181.  
  182. 49. Added proto for zapthreads to Python/pystate.c
  183.  
  184. 50. Added AMIGA version string to Modules/getbuildinfo.c
  185.  
  186. 51. Added platform 'amiga' to Python/getplatform.c
  187.  
  188. 52. Added compiler string to Python/getcompiler.c
  189.     (Changed the version string to be dynamically generated with SAS/C)
  190.  
  191. 53. Changes to library files in Lib drawer. These changes are also documented
  192.     in the README file. Files involved:
  193.     os.py           (amiga additions)
  194.     tempfile.py     (temp path try order is: T:, :T, SYS:T)
  195.     posixpath.py    (stub for old posixpath.py)
  196.     amigapath.py    (amiga's replacement for posixpath.py)
  197.  
  198. 54. Slight changes in the testset (Lib/test):
  199.     test_select.py    (can't be easily tested on amiga - not on files)
  200.  
  201. 55. Change in Objects/longobject.c (line 1488)
  202.     changed sizeof(PyLongObject) to sizeof(struct _longobject) because of
  203.     illegal sizeof expression (?)
  204.  
  205. 56. Changes in Objects/classobject.c:
  206.     added #include for the proto headers
  207.     added prototyped version of UNARY macro
  208.  
  209. 57. Added Guido's fix for bug in ceval.c (in DELETE_FAST block).
  210.     (the bug was: no NameError exception when deleting unknown symbol
  211.     within a function)
  212.  
  213.  
  214.  
  215.  
  216.  
  217.     Irmen de Jong
  218.  
  219.     irmen@bigfoot.com
  220.     http://www.bigfoot.com/~irmen/python.html
  221.  
  222.